package com.creed.business.service.impl;

import cn.hutool.core.lang.UUID;
import com.creed.business.dao.TestMapper;
import com.creed.business.service.ITestService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.creed.energy.project.system.common.domain.Test;

import java.util.Date;

/**
 * @author btmood
 * @version 1.0
 * @apiNote
 * @since 2023-11-15 21:35
 */
@Service
@Slf4j
@AllArgsConstructor
public class TestServiceImpl implements ITestService {

    private final TestMapper testMapper;

    @Override
    public void insertOne() {
        Test test = new com.creed.energy.project.system.common.domain.Test();
        test.setGuid(UUID.fastUUID().toString());
        test.setCreateTime(new Date());
        testMapper.insert(test);
    }
}
